#
# STANDARD IMPORTS
#
import os
import sys
import glob
import distutils.core

#
# SET WORKING DIRECTORY
#
os.chdir(os.path.dirname(sys.argv[0]) or '.')

#
# SETUP SYS PATH
#
sys.path.insert(0, os.path.join('.', 'machina'))

#
# MACHINA IMPORTS
#
import machina

#
# SET DATA FILES
#
data_files = [
	(os.path.join('doc', 'machina'), ['COPYING', 'README'])]

#
# SETUP
#
distutils.core.setup(
	name             = 'Machina',
	version          = machina.__version__,
	description      = 'This package provides a simple, lightweight but very effective and extremely extensible building framework designed in the spirit of Make, Ant and Rake.',
	long_description = open('README').read(),
	author           = 'Petko D. (pdp) Petkov',
	author_email     = 'pdp@gnucitizen.org',
	url              = 'http://code.google.com/p/machina-pythonica',
	packages         = ['machina'],

	scripts          = glob.glob(os.path.join('scripts', '*')),
	data_files       = data_files)
